import java.util.Scanner;

public class Test03 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        // code here
        String str = input.next();
        char [] a =str.toCharArray();
        if(a.length%2!=0){
            System.out.println("123456");
        }else{
            String q= str.substring(0,a.length/2);
            StringBuilder builder = new StringBuilder(str);
            String h= builder.reverse().toString().substring(0,a.length/2);
            System.out.println(q+h);

        }
    }
}
